package com.skyon.rule.res.exceptions;

public class BaseRuleException extends Exception {
	private static final long serialVersionUID = -3072864493530714283L;
	
	
	//
	public static final String BUILDER_EXCEPT_CODE ="xBBAA1001";
	public static final String BUILDER_EXCEPT_MSG ="";
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	protected  String errorCode;
	protected  String errorDesc;
	protected  Exception exception;
	protected  String ruleName;
	public BaseRuleException(){
		super();
	}
    public BaseRuleException(String errorDesc){
		super(errorDesc);
		this.errorDesc=errorDesc;
	}
    public BaseRuleException(Exception exception){
	    super(exception);
	    this.exception=exception;
    }
    public BaseRuleException(String errorDesc,Exception exception){
	    super(errorDesc, exception);
	    this.errorDesc=errorDesc;
	    this.exception=exception;
    }
    public BaseRuleException(String errorDesc,Exception exception,String ruleName){
	    super(errorDesc, exception);
	    this.errorDesc=errorDesc;
	    this.exception=exception;
	    this.ruleName=ruleName;
    }
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorDesc() {
		return errorDesc;
	}
	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}
	public Exception getException() {
		return exception;
	}
	public void setException(Exception exception) {
		this.exception = exception;
	}
	public String getRuleName() {
		return ruleName;
	}
	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}
}
